/* -----------------
* brief
* 1. this is code gen by tools
* 2. array like [a,b,c] after each field, define the ui html tag in view,
		a for title,
		b for show or not ,
		c for element html tag , currently support : check、radio、select、input、textarea、upload
* 3. XXX
*/

package wechat

import (
	wxcarduserinfo "github.com/chanxuehong/wechat/mp/card/membercard/userinfo"
	"github.com/mjiulee/lego"
)

func init() {
	lego.AddBeanToSynList(new(WxCardUserMemberCard))
}

/* table: "tb_wx_card_user_member_card"
 * -----------------
 */
type WxCardUserMemberCard struct {
	Id    int64  `xorm:"pk" json:",string"`               // ["id","hide","hidden"]
	IfDel int    `xorm:"default 0"`        // ["deleted","hide","hidden"]
	Cdate string `xorm:"DateTime created"` // ["create","show","datetime"]
	Udate string `xorm:"DateTime updated"` // ["update","show","datetime"]

	WeappId      string `xorm:"varchar(32) NOT NULL unique(grp_uqe_card)"` // ["微信APP ID","show","input"]
	CardId       string `xorm:"varchar(32) unique(grp_uqe_card)"`          //  ["卡券ID","show","input"]
	UserCardCode string `xorm:"varchar(32) unique(grp_uqe_card)"`          // ["code序列号","show","input"]

	// add your custom field here
	wxcarduserinfo.CardUserInfo `xorm:"extends"`
}
